<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML >
<html>
	<head>
		<title>项目管理系统</title>
		<link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css">
		<style type="text/css">
		body{
			padding-top:60px;
			background-image:url(static/img/bg.png);
		}
		</style>
	</head>
	<body>
		<div class="navbar navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container">
					<a class="brand" href="#">Kaishengit PMS</a>
				</div>
			</div>
		</div>
		<div class="container">
 			 <div class="row">
					<div class="span9">
						<div>
							<c:choose>
								<c:when test="${param.code==10001 }">
								不能有空值
								</c:when>
							</c:choose>
						</div>
						<form class="form-horizontal" action="task.jspx?m=edit" method="post">
					        <fieldset>
					        <legend>编辑任务</legend>
					        <div class="control-group">
					            <label class="control-label" for="input01">任务名称</label>
					            <div class="controls">
					              <input type="hidden" name="task_id" value="${task.id }">
					              <input name="name" class="span5" id="input01" type="text" value="${task.name }">
					            </div>
					        </div>
					        <div class="control-group">
					            <label class="control-label" for="input01" >开始时间</label>
					            <div class="controls">
					              <input name="begintime" class="span5" id="input01" type="text" value="${task.begintime }">
					            </div>
					       </div>
					       <div class="control-group">
					            <label class="control-label" for="input01">截止时间</label>
					            <div class="controls">
					              <input name="endtime" class="span5" id="input01" type="text" value="${task.endtime }">
					            </div>
					       </div>
					       <div class="control-group">
					            <label class="control-label" for="input01">任务描述</label>
					            <div class="controls">
					              <textarea name="describe" class="span5" rows="8">${task.describe}</textarea>
					            </div>
					       </div>
					       <div class="control-group">
					            <label class="control-label" for="multiSelect">状态</label>
					            <div class="controls">
					              <select id="multiSelect" name="status" onselect="${task.status}">
					                <option>新任务</option>
					                <option>进行中</option>
					                <option>已完成</option>
					              </select>
					            </div>
					       </div>
					       <div class="control-group">
					            <label class="control-label" for="multiSelect">级别</label>
					            <div class="controls">
					              <select id="multiSelect" name="rank" onselect="${task.rank}">
					                <option>重要紧急</option>
					                <option>重要不紧急</option>
					                <option>紧急不重要</option>
					                <option>不紧急不重要</option>
					              </select>
					            </div>
					        </div>
					        <div class="control-group">
					            <label class="control-label" for="multiSelect">负责人</label>
					            <div class="controls">
						            <select id="multiSelect" name="manager" onselect="${user.name }">
						                <c:forEach items="${sessionScope.userList }" var="user">
		                					<option value="${user.id }">${user.name }</option>
		                				</c:forEach>
						            </select>
					            </div>
					        </div>
					         <div class="control-group">
					            <label class="control-label" for="input01">完成进度</label>
					            <div class="controls">
					              <input name="rate" class="span3" id="input01" type="text" value="${task.rate }">输入0-100的数
					            </div>
					       </div>
					        <div style="margin-left:200px">
					           <button type="submit" class="btn btn-primary">保存</button>&nbsp;&nbsp;&nbsp;
					           <a class="btn" href="goal.jspx">返回</a> 
					        </div>
				       </fieldset>
 			       </form>          
			   </div>
           </div>
        </div>
	</body>
</html>
	
